package com.hs.user.service;

import com.hs.user.dao.TeacherMapper;
import com.hs.user.entity.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * Created by sheng on 2017/7/14.
 */
@Service("seacherServiceImpl")
public class TeacherServiceImpl implements TeacherService {

    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    @Transactional
    public int createTeacher(Teacher teacher) {
        teacherMapper.insertSelective(teacher);

        return 0;
    }
}
